package com.example.competitionregistration.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.stereotype.Repository;

import java.time.OffsetDateTime;

/**
 * @Author ZhangJun
 * @Description //比赛
 * @Date 2023/7/20
 **/
@Repository
@Data
@TableName("competition_attribute")
public class Competition {
    @TableId(type = IdType.ASSIGN_UUID)
    public String competitionId;
    @TableField("compet_type")
    public String competitionType;
    @TableField("need_preliminary_contest")
    public boolean needPreliminaryContest;
    @TableField("has_participant_limit")
    public boolean hasParticipantLimit;
    @TableField("has_registration_limit")
    public boolean hasRegistrationLimit;
    @TableField("need_registration_fee")
    public boolean needRegistrationFee;
    @TableField("gmt_time")
    public OffsetDateTime gmtTime;
    @TableField("gmt_modified")
    public OffsetDateTime gmtModified;
}
